package com.sigmazero13.gameutils.model;

import java.io.Serializable;

public class GamePlayerInfo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 5951009040874449691L;
	private String name;
	private String username;
	private String team;
	private Integer startingPos;
	private Integer score;
	private Boolean winner;	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getTeam() {
		return team;
	}
	public void setTeam(String team) {
		this.team = team;
	}
	public Integer getStartingPos() {
		return startingPos;
	}
	public void setStartingPos(Integer startingPos) {
		this.startingPos = startingPos;
	}
	public Integer getScore() {
		return score;
	}
	public void setScore(Integer score) {
		this.score = score;
	}
	public Boolean getWinner() {
		return winner;
	}
	public void setWinner(Boolean winner) {
		this.winner = winner;
	}
	
	
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append("PLAYER INFO {\n");
		sb.append("Name: " + getName() + "\n");
		sb.append("Username: " + getUsername() + "\n");
		sb.append("Team: " + getTeam() + "\n");
		sb.append("Starting Position: " + getStartingPos() + "\n");
		sb.append("Score: " + getScore() + "\n");
		sb.append("Winner? " + (getWinner()?"yes":"no") + "\n");
		sb.append("}");
		
		return sb.toString();
	}
}
